﻿@using Microsoft.AspNetCore.Authentication
@{
    ViewData["Title"] = "About";
}
<h2>@ViewData["Title"]</h2>
<h3>@ViewData["Message"]</h3>

<p>Use this area to provide additional information.</p>

@{
    var userResult = await ViewContext.HttpContext.AuthenticateAsync();
    foreach (var token in userResult.Properties.GetTokens())
    {
        <div>
            <strong>@token.Name : @token.Value</strong>
        </div>
    }
}
<dl>
    @foreach (var claim in User.Claims)
    {
        <dt>@claim.Type : @claim.Value</dt>
    }
</dl>
